package cc.miwuya.complain.api;

import cc.miwuya.common.util.Result;
import cc.miwuya.complain.domain.Complain;
import org.springframework.web.bind.annotation.*;

/**
 * @Author 迷雾森林
 * @Date 2024/4/20 下午8:59
 */
public interface ComplainApi {
    @GetMapping("/common/complain/getOwnerComplainList")
    public Result getOwnerComplainList(@RequestParam("residentialId") Long residentialId,@RequestParam("name") String name,@RequestParam("userId") Long userId);
    @PostMapping("/common/complain/score")
    public Result scoreComplain(Complain complain);
    @PostMapping("/common/complain/edit")
    public Result edit(@RequestBody Complain complain);
    @GetMapping("/common/complain/delete/{id}")
    public Result delete(@PathVariable Long id);
    @GetMapping("/common/complain/total")
    public Long total();
    @GetMapping("/common/complain/getComplainTotal")
    public Object getComplainTotal();
    @GetMapping("/common/complain/getWeekComplainTotal")
    public Object getWeekComplainTotal();
}
